package com.qiqu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Generated;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;
import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "comments")
public class Comments implements Serializable {
    private static final long serialVersionUID = -21218562528852800L;

    @Id
    private String id;
    private String fatherCommentId;
    private String toUserId;
    private String articleId;
    private String fromUserId;
    private String comment;
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

}
